import request from '/@/utils/request'

interface backResult {
    success: boolean,
    content: {
        type: Object,
        data: Array<any> | any,
    }
    errorcode: Number
}

export const EdgeGateways = (data: any) => {

    return new Promise<backResult>((resolve, reject) => {
        request.post('EdgeGateways/GetEdgeDeviceList', data).then(res => {
            resolve(res) as any

        }).catch(e => {
            reject(e)
        })
    })
}